﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using EzDesk.Core.Model;

namespace EzDesk.Apps.Model.ProjectModule
{
    public partial  class Task: ICloneable<Task>
    {
        public DateTime GetEndDate()
        {
            return this.StartOn.Value + TimeSpan.FromHours(this.Duration*3);
        }


        public Task Clone()
        {
            return MemberwiseClone() as Task;
        }
    }

}